package com.letoken.platform.repo.app.req.mall;

import com.baomidou.mybatisplus.annotation.TableField;
import com.letoken.platform.pub.annotation.content.ContentCheck;
import com.letoken.platform.pub.annotation.content.ContentEnum;
import com.letoken.platform.pub.annotation.sms.SpecifyMatch;
import com.letoken.platform.pub.req.QueryReqBase;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
@ApiModel(value = "商家列表", description = "商家列表请求对象")
public class ShopsReq extends QueryReqBase {


    @ApiModelProperty("排序类型 0=综合排序 1=销量 2=距离优先")
    @NotNull(message = "80000007")
    @SpecifyMatch(intValues = {0,1,2})
    private Integer type;


    @ApiModelProperty("搜索关键字")
    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407034")
    private String keywords;


    @ApiModelProperty("用户当前经度")
    @NotNull(message = "80000007")
    private BigDecimal longitude;


    @ApiModelProperty("用户当前纬度")
    @NotNull(message = "80000007")
    private BigDecimal latitude;


    @ApiModelProperty(hidden = true)
    private Integer state ;

    @ApiModelProperty(hidden = true)
    private Integer id ;


    @ApiModelProperty("一级分类")
    private Integer oneCategory;

    @ApiModelProperty("二级分类")
    private Integer twoCategory;


    @ApiModelProperty("省市")
    private String city;

    @ApiModelProperty(hidden = true)
    private Integer publishState;





}
